import https from '@/plugins/luch-request_0.0.7/request'

export default {
	/** 预约单 start */
	// 预约单列表
	getSubscribeOrderList: param => https.get('/apihkds/api/booking', param),
	// 预约单 汇总
	getSubscribeOrderStatistics: param => https.get('/apihkds/api/booking/statistics', param), // 判断是否是会员
	subscribeIsUserMerber: param => https.get('/apihkds/api/user/check', param), // 接单
	getSubscribeReceipt: param => https.post('/apihkds/api/booking/receipt', param), // 添加用户
	addSubscribeUser: param => https.post('/apihkds/api/booking/withuser', param), // 获取详情
	getSubscribeDetail: param => https.get('/apihkds/api/prebook/detailInfo', param),
	setReadStatus: param => https.post('/apihkds/api/booking/read/status', param),
	// 员工预约单
	getStaffUserList: param => https.get('/apihkds/api/booking/staff_user_list', param),
	/** 预约单 end */

	/** 接单 start */
	connectOrderList: param => https.get('/apihkds/api/booking/can/receipt', param),
	/** 接单 end */

	/** 抢单 start */
	grabOrderList: param => https.get('/apihkds/api/booking/rush/list', param),
	grabOrderDetail: param => https.get('/apihkds/api/booking/rush/detail', param),
	grabOrderPayInfo: param => https.get('/apihkds/api/booking/rush/pay/info', param),
	payGrabOrder: param => https.post('/apihkds/api/booking/rush', param),
	/** 抢单 end */
	/** 裂变 */
	getIndirectList: param => https.post('/apihkds/api/stats/user/trace/indirectFission', param),
	getUserList: param => https.post('/apihkds/api/stats/user/trace/list', param),
	getDirectList: param => https.post('/apihkds/api/stats/user/trace/directFission', param)
	/** */
}
